package com.ljh.logistics.logisticsservice.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: Themberfue
 * @date: 2025/4/29 20:30
 * @description:
 */
@Component
public class OrderListener {
    private static final Logger log = LoggerFactory.getLogger(OrderListener.class);

    @RabbitListener(queues = "order.create")
    public void process(String message) {
        log.info("接收到订单消息：{}", message);
    }
}
